package com.pc_project.mapper;

import com.github.pagehelper.Page;
import com.pc_project.domain.Letter;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LetterDao {
    int deleteByPrimaryKey(Integer lid);

    int deleteByPrimaryKeyAndSuId(Integer suId, Integer lId);

    int insert(Letter record);

    int insertSelective(Letter record);

    List<Letter> selectAll();

    List<Letter> selectAllByItId(int itId);

    List<Letter> selectAllByItIdAndSuId(Integer suId, Integer ltId);

    List<Letter> selectLettersByPrimaryKey(int itId);

    List<Letter> selectLettersByLtIdAndSuId(Integer suId, Integer ltId);

    Letter selectByPrimaryKey(Integer lid);

    int updateByPrimaryKeySelective(Letter record);

    int updateByPrimaryKey(Letter record);

    int updateByPrimaryKeyAndSuId(Letter record);

    List<Letter> selectAllBySuId(Integer suId);
}